-- GENERATED SPELL FOR [Vile Larva] --


function spell0_12218(pUnit, Event) --@Larva Goo,Self--
pUnit:FullCastSpellOnTarget(21069,pUnit)
pUnit:RegisterEvent('Sorts_12218', 6000, 1)
end

function Sorts_12218(pUnit, Event)
local choix_sorts_12218 = math.random(0, 0)
if choix_sorts_12218 == 0 then
pUnit:RegisterEvent('spell0_12218', 1, 1)
end
end

function mob12218_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_12218', math.random(1500, 3000), 1)
end

function mob12218_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12218_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob12218_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(12218, 1, 'mob12218_Action')
RegisterUnitEvent(12218, 2, 'mob12218_Leave')
RegisterUnitEvent(12218, 3, 'mob12218_Kill')
RegisterUnitEvent(12218, 4, 'mob12218_Die')
